import React from "react";
import { BrowserRouter, HashRouter, useRoutes } from "react-router-dom";
import { ROUTER_LIST } from "./routes";

const Router = () => {
  const App = () => useRoutes(ROUTER_LIST);
  return (
    <BrowserRouter>
      <React.Suspense>
        <App></App>
      </React.Suspense>
    </BrowserRouter>
  );
};

export default Router;
